import React from 'react';
import { BrowserRouter as Router, Route } from "react-router-dom";

import MyMap from "./components/MyMap/MyMap";

function App() {
    const routeConfig = [
        {
            path: "/",
            component: MyMap,
            exact: false,
            key: "MyMap"
        }
    ];

    return (
        <Router>
            {routeConfig.map(dataObj => (
                <Route {...dataObj} ></Route>
            ))}
        </Router>
    );
}

export default App;
